<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      docbook-4.5
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;48.&nbsp;Standard Generalized Markup Language (SGML)
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="sgml-dtd-3.html" title=
          "docbook-3.1">Prev</a>
          <p>
            docbook-3.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="opensp.html" title="OpenSP-1.5.2">Next</a>
          <p>
            OpenSP-1.5.2
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sgml.html" title=
          "Chapter&nbsp;48.&nbsp;Standard Generalized Markup Language (SGML)">
          Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="sgml-dtd" name="sgml-dtd"></a>docbook-4.5
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to DocBook SGML DTD
        </h2>
        <p>
          The <span class="application">DocBook SGML DTD</span> package
          contains document type definitions for verification of SGML data
          files against the DocBook rule set. These are useful for
          structuring books and software documentation to a standard allowing
          you to utilize transformations already written for that standard.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://www.docbook.org/sgml/4.5/docbook-4.5.zip">http://www.docbook.org/sgml/4.5/docbook-4.5.zip</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 07c581f4bbcba6d3aac85360a19f95f7
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 70 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 784 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          DocBook SGML DTD Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="sgml-common.html" title=
          "sgml-common-0.6.3">sgml-common-0.6.3</a> and <a class="xref" href=
          "../general/unzip.html" title="UnZip-6.0">UnZip-6.0</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/sgml-dtd">http://wiki.linuxfromscratch.org/blfs/wiki/sgml-dtd</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of DocBook SGML DTD
        </h2>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            The package source is distributed in <code class=
            "filename">zip</code> format and requires <span class=
            "command"><strong>unzip</strong></span>. You should create a
            directory and change to that directory before unzipping the file
            to ease the removal of the source files after the package has
            been installed.
          </p>
        </div>
        <p>
          Install <span class="application">DocBook SGML DTD</span> by
          running the following commands:
        </p>
        <pre class="userinput">
<kbd class="command">sed -i -e '/ISO 8879/d' \
       -e '/gml/d' docbook.cat</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class=
"command">install -v -d /usr/share/sgml/docbook/sgml-dtd-4.5 &amp;&amp;
chown -R root:root . &amp;&amp;

install -v docbook.cat /usr/share/sgml/docbook/sgml-dtd-4.5/catalog &amp;&amp;
cp -v -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-4.5 &amp;&amp;

install-catalog --add /etc/sgml/sgml-docbook-dtd-4.5.cat \
    /usr/share/sgml/docbook/sgml-dtd-4.5/catalog &amp;&amp;

install-catalog --add /etc/sgml/sgml-docbook-dtd-4.5.cat \
    /etc/sgml/sgml-docbook.cat</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>sed -i -e '/ISO 8879/d' -e '/gml/d'
          docbook.cat</strong></span>: This command removes the ENT
          definitions from the catalog file.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring DocBook SGML DTD
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="sgml-dtd-config" name="sgml-dtd-config"></a>
          </h3>
          <h4 class="title">
            <a id="sgml-dtd-config" name="sgml-dtd-config"></a>Config Files
          </h4>
          <p>
            <code class="filename">/etc/sgml/catalog</code>
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm45779231566896" name=
            "idm45779231566896"></a>Configuration Information
          </h4>
          <p>
            The above installation script updates the catalog.
          </p>
          <p>
            Using only the most current 4.x version of <span class=
            "application">DocBook SGML DTD</span> requires the following
            (perform as the <code class="systemitem">root</code> user):
          </p>
          <pre class="root">
<kbd class=
"command">cat &gt;&gt; /usr/share/sgml/docbook/sgml-dtd-4.5/catalog &lt;&lt; "EOF"
<code class="literal">  -- Begin Single Major Version catalog changes --

PUBLIC "-//OASIS//DTD DocBook V4.4//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.3//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"

  -- End Single Major Version catalog changes --</code>
EOF</kbd>
</pre>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Files:</strong> <span class=
              "segbody">SGML DTD and MOD files</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class=
              "segbody">/usr/share/sgml/docbook/sgml-dtd-4.5</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="SGML-DTD-files-4" name=
                    "SGML-DTD-files-4"></a><span class="term"><code class=
                    "filename">SGML DTD files</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contain a document type definition which defines the
                    element types and the attribute lists that can be used in
                    the corresponding SGML files.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="SGML-MOD-files-4" name=
                    "SGML-MOD-files-4"></a><span class="term"><code class=
                    "filename">SGML MOD files</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contain components of the document type definition that
                    are sourced into the <code class="filename">DTD</code>
                    files.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-19 16:31:22 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="sgml-dtd-3.html" title=
          "docbook-3.1">Prev</a>
          <p>
            docbook-3.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="opensp.html" title="OpenSP-1.5.2">Next</a>
          <p>
            OpenSP-1.5.2
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sgml.html" title=
          "Chapter&nbsp;48.&nbsp;Standard Generalized Markup Language (SGML)">
          Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
